package com.kx.kxblog.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "UserRegisterVO", description = "用户注册对象")
public class UserRegisterVO {
    @NotEmpty
    @Size(min = 4, max = 32)
    @ApiModelProperty(value = "用户名", required = true)
    private String user;

    @NotEmpty
    @Size(max = 32)
    @ApiModelProperty(value = "昵称", required = true)
    private String nickName;

    @NotEmpty
    @Size(min = 6,max = 16)
    @ApiModelProperty(value = "密码")
    private String password;

    @Email
    @ApiModelProperty(value = "邮箱")
    private String email;

}
